﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Meraz.Core.Data;
using Meraz.Core.Model;
using Meraz.Core.Repositories;
using Meraz.Core.Parsers;
using Meraz.Core.Managers;
using Ninject;

namespace Meraz.Core.Commands
{
    public class CreateUrlsSqlCommand : BaseCommand, ICreateUrlsCommand
    {
        public CreateUrlsSqlCommand()
        { 
        }

        public Url Execute(string url, Domain domain)
        {
            int id = MerazContext.Instance.CreateUrl(url, domain.ID);
            return new Url() { ID=id, DomainID = domain.ID, Name = url};
        }
        public List<Url> Execute(IDictionary<string, Domain> urlDomains)
        {
            throw new NotImplementedException();
        }
    }
}
